const fs = require('fs')

const rs = fs.createReadStream('./1.txt')

const ws = fs.createWriteStream('./2.txt')

// 管道,高性能复制文件的方法
rs.pipe(ws)